package com.nursinghome.admin.service;

import com.nursinghome.bean.Account;
import com.nursinghome.bean.Elderly;
import com.nursinghome.exception.NurisingHomeException;

import java.util.List;

public interface AccountService {
    //根据老人查询账单
    Boolean selectByEname(String data, Long eid);
    //根据日期查询账单
    List<Account> selectByadata(String data);
    //新增老人的账单
    Boolean insert(Account account) throws NurisingHomeException;
    //修改老人的账单
    Boolean updata(Account account) throws NurisingHomeException;
    //根据账单id回显数据
    Account selectByAid(Long aid);
    //查询所有的老人
    List<Elderly> allElderly();
}
